package com.dcloud.enums;

import lombok.Getter;


@Getter
public enum BizErrorEnum {


  SYSTEM_ERROR("500", "系统异常"),
  CUSTOMER_SYSTEM_ERROR("501", "自定义异常"),

  REQUSET_ERROR_NULL("10001", "请求参数为空"),

  //元数据相关异常
  METADATA_ERROR_SOURCE_DEF_USED("900201", "数据源定义已被使用"),
  METADATA_ERROR_INNERSOURE_DELETE("900202", "内部数据源不能删除"),

  //数据资源访问异常
  DATALIB_ERROR_CREATE_TABLE("910202", "数据源库建表失败"),
  DATALIB_ERROR_TABLE_JXCX("910203", "数据资产表即席查询失败"),
  DATALIB_ERROR_TABLE_DDL("910204", "数据资产表DDL查询失败"),


  ;


  private String code;

  private String errorMsg;

  BizErrorEnum(String code, String errorMsg) {
    this.code = code;
    this.errorMsg = errorMsg;
  }
}
